﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace hnrzxt.Migrations
{
    public partial class addzlxx : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "Roleid",
                table: "Roles_Menu",
                type: "int",
                nullable: false,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)");

            migrationBuilder.AlterColumn<int>(
                name: "Menuid",
                table: "Roles_Menu",
                type: "int",
                nullable: false,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)");

            migrationBuilder.CreateTable(
                name: "zlxxes",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Jbxxid = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Lyscrouce = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Lytime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Rz = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Yrbm = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Msb = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Bjdc = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Result = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ResultBz = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_zlxxes", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "zlxxes");

            migrationBuilder.AlterColumn<string>(
                name: "Roleid",
                table: "Roles_Menu",
                type: "nvarchar(max)",
                nullable: false,
                oldClrType: typeof(int),
                oldType: "int");

            migrationBuilder.AlterColumn<string>(
                name: "Menuid",
                table: "Roles_Menu",
                type: "nvarchar(max)",
                nullable: false,
                oldClrType: typeof(int),
                oldType: "int");
        }
    }
}
